﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XXS.Common.BaseDomain;

namespace KTD.Web.Models.VD
{

    public class LinkMan {
        public string Name { get; set; }
        public string Tel { get; set; }
    }

    public class RecordHouse
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public string SalerNames { get; set; }

        public string SalerTels { get; set; }
    }
    public class CustomerRecordCUD : DoubleMapBaseDomain<CustomerRecord, CustomerRecordCUD>
    {
        public int? Id { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public List<LinkMan> Customers { get; set; }

        /// <summary>
        ///报备房源
        /// </summary>
        public string HouseIds { get; set; }

        /// <summary>
        /// 报备房源详情
        /// </summary>
        public List<RecordHouse> Houses { get; set; }


        /// <summary>
        /// 经纪人
        /// </summary>
        public List<LinkMan> Brokers { get; set; }

        /// <summary>
        /// 到访时间
        /// </summary>
        public DateTime? DateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public int MemberId { get; set; }
    }
}